import axios from "@/axios"

export function addCategory(data) {
    return axios.post("/admin/category/add", data)
}

export function getCategoryPageList(data) {
    return axios.post("/admin/category/list", data)
}


export function deleteCategory(ids) {
    return axios.delete("/admin/category", ids)
}

export function getCategorySelect() {
    return axios.post("/admin/category/select/list")
}

export function updateCategory(data){
    return axios.put('/admin/category',data)
}

